/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.sree.tali.dao.homepage.impl;

import com.sree.tali.hibernate.pojo.IpPojo;
import com.sree.tali.hibernate.pojo.UserPojo;
import com.sree.tali.pojo.ArticleTypes;
import com.sree.tali.pojo.Role;
import com.sree.tali.pojo.RoleArticleMapping;
import com.sree.tali.pojo.RoleUserMapping;
import com.sree.tali.pojo.UploadImagePojo;
import java.util.List;
import org.hibernate.Session;

/**
 *
 * @author sreenuv
 */
public interface ShowArticleDao {
    public  List<UploadImagePojo> showHomeArticle(Session paramSession);
    public  List<UploadImagePojo> showInactiveArticle( Session paramSession );
    public UploadImagePojo showArticle(  Session paramSession, String articleName);
    public List<UploadImagePojo> viewArticles(Session paramSession , UploadImagePojo uploadimagepojo);
    public void updateArticle (  Session paramSession , UploadImagePojo uploadimagepojo);
    public List<UploadImagePojo> showTitles(  Session paramSession, String articleType);
    public List<UploadImagePojo> showRelatedArticle(Session paramSession ,UploadImagePojo uploadhomeimage);
    public List<UploadImagePojo> showRecentArticle(Session paramSession ,UploadImagePojo uploadhomeimage);
    public List<UploadImagePojo> showMostViewedArticle(Session paramSession ,UploadImagePojo uploadhomeimage);
    public void createUser(Session paramSession ,UploadImagePojo uploadhomeimage);
    public void addIp(Session paramSession ,UploadImagePojo uploadhomeimage); 
    public List<IpPojo> showIps(  Session paramSession );
    public List<UserPojo> showUsers(  Session paramSession);
    public void inactivateUser(Session paramSession ,int id);
    public void inactivateIp(Session paramSession ,int id);
    public void inactivateArticle(Session paramSession ,int id);
    public void activateArticle(Session paramSession ,int id, int articleNumber);
    public void deleteAllIps(Session paramSession);
    public UploadImagePojo editArticle(Session paramSession ,int id);
    public void removeArticle(Session paramSession ,int id);
    public void removeUser(Session paramSession ,int id);
    public void removeIp(Session paramSession ,int id);
    public void addArticleTypes(Session paramSession , ArticleTypes articletypes );
    public List<ArticleTypes> viewArticleTypes(Session paramSession);
    public void removeArticleTypes(Session paramSession , int id);


     public void addRole(Session paramSession , Role role );
     public List<Role> viewRole(Session paramSession );
     public void removeRole(Session paramSession , int id);
     public void addRoleUser(Session paramSession , RoleUserMapping roleusermapping );
     public List<RoleUserMapping> viewRoleUser(Session paramSession );
     public void removeRoleUser(Session paramSession , int id);
     public void addRoleArticle(Session paramSession , RoleArticleMapping rolearticlemapping );
     public List<RoleArticleMapping> viewRoleArticle(Session paramSession );
     public void removeRoleArticle(Session paramSession , int id);



}
